package pl.edu.agh.stock.data;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class ValorDataPoint implements Serializable {

	private static final long serialVersionUID = -8905585083930868120L;

	private String name;
	private Date time;
	private float currentValue;
	private float referenceValue;
	private float openingValue;
	private float minValue;
	private float maxValue;
	private float salesVolume;

	public ValorDataPoint() {

	}

	public ValorDataPoint(String name, Date time, float currentValue,
			float referenceValue, float openingValue, float minValue,
			float maxValue, float salesVolume) {

		this.name = name;
		this.time = time;
		this.currentValue = currentValue;
		this.referenceValue = referenceValue;
		this.openingValue = openingValue;
		this.minValue = minValue;
		this.maxValue = maxValue;
		this.salesVolume = salesVolume;
	}

	@XmlElement
	public String getName() {
		return name;
	}

	@XmlElement
	public Date getTime() {
		return time;
	}

	@XmlElement
	public float getCurrentValue() {
		return currentValue;
	}

	@XmlElement
	public float getReferenceValue() {
		return referenceValue;
	}

	@XmlElement
	public float getOpeningValue() {
		return openingValue;
	}

	@XmlElement
	public float getMinValue() {
		return minValue;
	}

	@XmlElement
	public float getMaxValue() {
		return maxValue;
	}

	@XmlElement
	public float getSalesVolume() {
		return salesVolume;
	}

}
